﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("LMSendPortArea", "LMSendPortArea", new string[] { "AREAPORTID" })]
    [KnownType(typeof(AreaPort))]
    public class AreaPort : MB.Orm.Common.BaseModel
    {
        public AreaPort()
        { }

        private int _AREAPORTID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("AREAPORTID", System.Data.DbType.Int32)]
        public int AREAPORTID
        {
            get { return _AREAPORTID; }
            set { _AREAPORTID = value; }
        }

        private int _AREAID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("AREAID", System.Data.DbType.Int32)]
        public int AREAID
        {
            get { return _AREAID; }
            set { _AREAID = value; }
        }

        private int _SENDPORTID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SENDPORTID", System.Data.DbType.Int32)]
        public int SENDPORTID
        {
            get { return _SENDPORTID; }
            set { _SENDPORTID = value; }
        }

        private string _CREATER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATER", System.Data.DbType.String)]
        public string CREATER
        {
            get { return _CREATER; }
            set { _CREATER = value; }
        }

        private DateTime _CREATETIME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATETIME", System.Data.DbType.DateTime)]
        public DateTime CREATETIME
        {
            get { return _CREATETIME; }
            set { _CREATETIME = value; }
        }

        private string _MODITOR;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("MODITOR", System.Data.DbType.String)]
        public string MODITOR
        {
            get { return _MODITOR; }
            set { _MODITOR = value; }
        }

        private DateTime _MODITIME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("MODITIME", System.Data.DbType.DateTime)]
        public DateTime MODITIME
        {
            get { return _MODITIME; }
            set { _MODITIME = value; }
        }

        private string _REMARK;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("REMARK", System.Data.DbType.String)]
        public string REMARK
        {
            get { return _REMARK; }
            set { _REMARK = value; }
        }

        private string _AreaName;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("AreaName", System.Data.DbType.String)]
        public string AreaName
        {
            get { return _AreaName; }
            set { _AreaName = value; }
        }
        private string _SendPortName;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SendPortName", System.Data.DbType.String)]
        public string SendPortName
        {
            get { return _SendPortName; }
            set { _SendPortName = value; }
        }
    }

    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("lookupitem", "lookupitem", new string[] { "lookupid" })]
    [KnownType(typeof(lookupitem))]
    public class lookupitem : MB.Orm.Common.BaseModel
    {
        public lookupitem()
        { }

        private String _lookupid;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("lookupid", System.Data.DbType.String)]
        public String lookupid
        {
            get { return _lookupid; }
            set { _lookupid = value; }
        }

        private String _fieldvalue;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("fieldvalue", System.Data.DbType.String)]
        public String fieldvalue
        {
            get { return _fieldvalue; }
            set { _fieldvalue = value; }
        }

        private String _lookup;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("lookup", System.Data.DbType.String)]
        public String lookup
        {
            get { return _lookup; }
            set { _lookup = value; }
        }

        private string _note;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("note", System.Data.DbType.String)]
        public string note
        {
            get { return _note; }
            set { _note = value; }
        }

        private DateTime _lastmoditime;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("lastmoditime", System.Data.DbType.DateTime)]
        public DateTime lastmoditime
        {
            get { return _lastmoditime; }
            set { _lastmoditime = value; }
        }

        private string _lastmodiopid;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("lastmodiopid", System.Data.DbType.String)]
        public string lastmodiopid
        {
            get { return _lastmodiopid; }
            set { _lastmodiopid = value; }
        }

    }


}
